#include "CubePileGrid.h"

CubePileGrid::CubePileGrid()
{
	for(int i=0; i<GRID_SIZE; i++)
	{
		for(int j=0; j<GRID_SIZE; j++)
		{
			cubePiles[i][j] = NULL;
		}
	}
}

CubePileGrid::~CubePileGrid()
{
}

CubePile * CubePileGrid::at(int x, int z)
{
	return cubePiles[x][z];
}

void CubePileGrid::set(int x, int z, CubePile * target)
{
	cubePiles[x][z] = target;
}
